package com.wc.tt;

public abstract class AbstractAttence {

    //扣除的基本分
    public abstract double reduceBaseScore(double days,int type);
    
    //扣除的绩效分
    public abstract double reducePerformanceScore(double days,int type);

    /**
     * 正常扣分逻辑
     *
     * @param days
     * @param score
     * @return
     */
    public double general(double days, double score) {
        return days * score;
    }
    public double generalPerformanceScore(double days, double type) {
        return days * LeaveType.getPerformanceScore(type);
    }
}

